import 'package:dio/dio.dart' hide Headers;
import 'package:retrofit/retrofit.dart';

import '../../../../../base/api/api_config.dart';
import '../../../../../base/api/base_dio.dart';
import '../../../../../base/api/result_entity.dart';
import '../../../../auth/entity/login_result.dart';

part 'user_public_api.g.dart';

@RestApi()
abstract class UserPublicApiClient {
  factory UserPublicApiClient({Dio? dio, String? baseUrl}) {
    dio ??= BaseDio.getInstance().getDio();
    return _UserPublicApiClient(dio, baseUrl: baseUrl ?? ApiConfig().getServiceApiAddress());
  }

}

///用户服务
class UserPublicServiceRepository {
  static final UserPublicApiClient _userApiClient = UserPublicApiClient();

}
